import React from "react"
import { withRouter } from "react-router-dom"
import "../assets/css/return/return.css"


class Return extends React.Component {

  toPrevious() {
    this.props.history.goBack()
  }

  render() {
    // console.log(this.props)
    // console.log(this.props.returnMsg)
    return (
      <div className='return'>
        <span className="iconfont icon-fanhuipt" onClick={() => this.toPrevious()}></span>
        <span className='msg'>{this.props.returnMsg}</span>
      </div>
    )
  }
}

export default withRouter(Return)